<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
      xmlns:h="http://xmlns.jcp.org/jsf/html"
      xmlns:f="http://xmlns.jcp.org/jsf/core">

    <ui:composition template="/template.xhtml">
        <ui:define name="title">
            <h:outputText value="#{bundle.ViewClienteTitle}"></h:outputText>
        </ui:define>
        <ui:define name="body">
            <h:panelGroup id="messagePanel" layout="block">
                <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
            </h:panelGroup>
            <h:form>
                <h:panelGrid columns="2">
                    <h:outputText value="#{bundle.ViewClienteLabel_idcliente}"/>
                    <h:outputText value="#{clienteController.selected.idcliente}" title="#{bundle.ViewClienteTitle_idcliente}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_razaosocial}"/>
                    <h:outputText value="#{clienteController.selected.razaosocial}" title="#{bundle.ViewClienteTitle_razaosocial}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_fantasia}"/>
                    <h:outputText value="#{clienteController.selected.fantasia}" title="#{bundle.ViewClienteTitle_fantasia}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_identificacao}"/>
                    <h:outputText value="#{clienteController.selected.identificacao}" title="#{bundle.ViewClienteTitle_identificacao}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_sexo}"/>
                    <h:outputText value="#{clienteController.selected.sexo}" title="#{bundle.ViewClienteTitle_sexo}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_inscestadual}"/>
                    <h:outputText value="#{clienteController.selected.inscestadual}" title="#{bundle.ViewClienteTitle_inscestadual}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_email}"/>
                    <h:outputText value="#{clienteController.selected.email}" title="#{bundle.ViewClienteTitle_email}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_telefone}"/>
                    <h:outputText value="#{clienteController.selected.telefone}" title="#{bundle.ViewClienteTitle_telefone}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_celular}"/>
                    <h:outputText value="#{clienteController.selected.celular}" title="#{bundle.ViewClienteTitle_celular}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_endereco}"/>
                    <h:outputText value="#{clienteController.selected.endereco}" title="#{bundle.ViewClienteTitle_endereco}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_bairro}"/>
                    <h:outputText value="#{clienteController.selected.bairro}" title="#{bundle.ViewClienteTitle_bairro}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_cidade}"/>
                    <h:outputText value="#{clienteController.selected.cidade}" title="#{bundle.ViewClienteTitle_cidade}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_descricao}"/>
                    <h:outputText value="#{clienteController.selected.descricao}" title="#{bundle.ViewClienteTitle_descricao}"/>
                    <h:outputText value="#{bundle.ViewClienteLabel_idcontato}"/>
                    <h:outputText value="#{clienteController.selected.idcontato}" title="#{bundle.ViewClienteTitle_idcontato}"/>
                </h:panelGrid>
                <br />
                <h:commandLink action="#{clienteController.destroyAndView}" value="#{bundle.ViewClienteDestroyLink}"/>
                <br />
                <br />
                <h:link outcome="Edit" value="#{bundle.ViewClienteEditLink}"/>
                <br />
                <h:commandLink action="#{clienteController.prepareCreate}" value="#{bundle.ViewClienteCreateLink}" />
                <br />
                <h:commandLink action="#{clienteController.prepareList}" value="#{bundle.ViewClienteShowAllLink}"/>
                <br />
                <br />
                <h:link outcome="/index" value="#{bundle.ViewClienteIndexLink}"/>

            </h:form>
        </ui:define>
    </ui:composition>

</html>
